//
//  JQAFNetTool.h
//  QiongYou
//
//  Created by 景强 on 16/3/7.
//  Copyright © 2016年 景强. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void(^BlockOfSuccess) (id result);

typedef NS_ENUM(NSUInteger, JQResponseStyle) {
    JQJSON,
    JQXML,
    JQDATA,
    
};

typedef NS_ENUM(NSUInteger, JQRequestStyle) {
    
    JQRequestJSON,
    JQRequestString,
    
    
    
};





@interface JQAFNetTool : NSObject

+ (void)GETNetWithUrl:(NSString *)url body:(id)body headerFile:(NSDictionary *)header response:(JQResponseStyle)responseStyle   success:(BlockOfSuccess)success failure:(void (^)(NSError * error))failure;




+ (void)POSTNetWithUrl:(NSString *)url body:(id)body bodyStyle:(JQRequestStyle)bodyRequestStyle headerFile:(NSDictionary *)header response:(JQResponseStyle)responseStyle   success:(BlockOfSuccess)success failure:(void (^)(NSError * error))failure;














@end
